// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity;

import android.app.ProgressDialog;
import android.graphics.Color;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.View;
import android.view.WindowManager;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.RadioGroup;
import android.widget.TextView;
import com.nnee.p_b.p_a.cls_d;
import com.nnee.p_fk.cls_ActivityEx;
import com.nnee.p_fk.cls_k;
import com.nnee.p_g.cls_b;
import com.nnee.p_img.cls_c;
import com.nnee.p_pr.cls_v;

// Referenced classes of package com.nnee.p_pr.p_activity:
//            ev

public class cls_PRISActivityReport extends cls_ActivityEx
    implements android.view.View.OnClickListener, android.widget.RadioGroup.OnCheckedChangeListener
{

    public cls_PRISActivityReport()
    {
        j = 1;
        b = new cls_ev(this);
    }

    private int a(int i1)
    {
        int j1 = 0;
        switch(i1)
        {
        case 1:
        	j1 = 0x7f0d00be;
        	break;
        case 2:
        	j1 = 0x7f0d00bf;
        	break;
        case 3:
        	j1 = 0x7f0d00c0;
        	break;
        case 4:
        	j1 = 0x7f0d00c1;
        	break;
        default:
        	break;
        }
        
        return j1;
        
         
    }

    static ProgressDialog a(cls_PRISActivityReport prisactivityreport)
    {
        return prisactivityreport.d;
    }

    static ProgressDialog a(cls_PRISActivityReport prisactivityreport, ProgressDialog progressdialog)
    {
        prisactivityreport.d = progressdialog;
        return progressdialog;
    }

    private void a(Bundle bundle)
    {
        int i1;
        if(bundle != null)
            j = bundle.getInt("problem_type");
        else
            j = 1;
        setTitle(0x7f0a013f);
        g(8);
        c = (EditText)findViewById(0x7f0d00c2);
        e = (RadioGroup)findViewById(0x7f0d00bd);
        e.setOnCheckedChangeListener(this);
        e.check(a(j));
        l = (EditText)findViewById(0x7f0d00c3);
        if(com.nnee.p_b.p_a.cls_d.h().i())
            l.setVisibility(0);
        m = (TextView)findViewById(0x7f0d0009);
        m.setBackgroundDrawable(com.nnee.p_fk.cls_k.a(this).b(0x7f020134));
        i1 = com.nnee.p_img.cls_c.a(this, 8F);
        ((LinearLayout)findViewById(0x7f0d0005)).setPadding(0, 0, i1, 0);
        m.setVisibility(0);
        m.setTextSize(14F);
        m.setTextColor(Color.rgb(255, 255, 255));
        m.setText(0x7f0a01f7);
        m.setOnClickListener(this);
    }

    private String b(int i1)
    {
        int j1 = 0;
       switch( i1){
       case 1:
    	   j1 = 0x7f0a01f2;
    	   break;
       case 2:
    	   j1 = 0x7f0a01f3;
    	   break;
       case 3:
    	   j1 = 0x7f0a01f4;
    	   break;
       case 4:
    	   j1 = 0x7f0a01f5;
    	   break;
       default:
    	   break;
       }
       return getString(j1);
       
        
    }

    void b()
    {
        String s = c.getEditableText().toString();
        if(TextUtils.isEmpty(s))
        {
            com.nnee.p_g.cls_b.c("PrisActivity", "content is empty or null");
        } else
        {
            String s1 = b(j);
            if(TextUtils.isEmpty(s1))
            {
                com.nnee.p_g.cls_b.c("PrisActivity", "mType is empty or null");
            } else
            {
                d = ProgressDialog.show(this, null, getString(0x7f0a00e8), true, true);
                cls_v.a().a(b);
                String s2;
                if(l.getVisibility() == 0)
                {
                    s2 = l.getText().toString();
                    if(TextUtils.isEmpty(s2))
                        s2 = com.nnee.p_b.p_a.cls_d.h().c();
                } else
                {
                    s2 = com.nnee.p_b.p_a.cls_d.h().c();
                }
                com.nnee.p_pr.p_d.cls_c.b(p(), 1, s);
                cls_v.a().a(s1, s, s2, true);
            }
        }
    }

    void c()
    {
        finish();
    }

    public void onCheckedChanged(RadioGroup radiogroup, int i1)
    {
       switch( i1){
       case 2131558590:
    	   j = 1;
    	   break;
       case 2131558591:
    	   j = 2;
    	   break;
       case 2131558592:
    	   j = 3;
    	   break;
       case 2131558593:
    	   j = 4;
    	   break;
       default:
    	   break;
       }
         
    }

    public void onClick(View view)
    {
       switch( view.getId()){
       case 2131558409:
    	   b();
    	   break;
    	   default:
    		   break;
       }
       
    }

    protected void onCreate(Bundle bundle)
    {
        super.onCreate(bundle);
        setContentView(0x7f03003a);
        a(bundle);
        DisplayMetrics displaymetrics = new DisplayMetrics();
        ((WindowManager)getSystemService("window")).getDefaultDisplay().getMetrics(displaymetrics);
        com.nnee.p_g.cls_b.c("PRISActivityReport", (new StringBuilder()).append("w:").append(displaymetrics.widthPixels).append(",h:").append(displaymetrics.heightPixels).append(",d:").append(displaymetrics.density).append(",dpi:").append(displaymetrics.densityDpi).append(",sd:").append(displaymetrics.scaledDensity).append(",xd:").append(displaymetrics.xdpi).append(",yd:").append(displaymetrics.ydpi).toString());
    }

    protected void onDestroy()
    {
        super.onDestroy();
        cls_v.a().b(b);
        if(b != null)
        {
            b.c();
            b = null;
        }
        if(d != null)
        {
            d.dismiss();
            d = null;
        }
    }

    protected void onSaveInstanceState(Bundle bundle)
    {
        super.onSaveInstanceState(bundle);
        bundle.putInt("problem_type", j);
    }

    static final String a = "PRISActivityReport";
    com.nnee.p_pr.cls_b b;
    private EditText c;
    private ProgressDialog d;
    private RadioGroup e;
    private final int f = 1;
    private final int g = 2;
    private final int h = 3;
    private final int i = 4;
    private int j;
    private final String k = "problem_type";
    private EditText l;
    private TextView m;
}
